import React, { Component } from 'react'
import PropTypes from 'prop-types'

export default class TodoHeader extends Component{
    static propTypes = {
        title: PropTypes.string.isRequired,
        subtitle:PropTypes.number
    }
    // 设置默认值
    static defaultProps = {
        title: "wed",
        subtitle: 12
    }
    render() {
        console.log(this)
        return (
            
            <div>
                {/* <h1>具体代办事项</h1>
                <h3>革命尚未完成</h3> */}
                {this.props.children}
                
            </div>
        )
    }
}
